<div class="root" mx-mousedown="@:{move.cal}()">
    <div class="days">
        {{set rest=Math.ceil(esDays)}}
        今年共{{=days}}天，
        {{if rest==0}}
            今天是最后一天
        {{else}}
            还有{{=rest}}天
        {{/if}}
    </div>
    <div class="progress">
        <div class="bar" style="width:{{=percent}}%"></div>
    </div>
    <div class="big-month">
        {{=month}}
    </div>
    <table class="week">
        <tbody>
            <tr>
                {{each weekText as wt}}
                    <td class="week-header">{{=wt}}</td>
                {{/each}}
            </tr>
            {{each weeks as weekDays}}
                <tr>
                    {{each weekDays as wd}}
                        {{set date=`${wd.year}-${wd.month}-${wd.day}`}}
                        <td class="week-day{{if wd.year==year&&wd.month==month&&wd.day==day}} week-day-selected{{/if}}{{if workdays[date]===1}} day-work{{else if holidays[date]===1}} day-holiday{{/if}}{{if wd.month==birthday.month&&wd.day==birthday.day}} birthday{{/if}}" title="{{!wd.otherMonth}}?{{=date}}{{if workdays[date]===1}} 上班{{else if holidays[date]===1}} 放假{{/if}} {{if solarTerms[date]}}{{=solarTerms[date]}}{{/if}} {{if wd.month==birthday.month&&wd.day==birthday.day}}{{=birthday.name}}生日，今年{{=wd.year-birthday.year}}岁啦～{{/if}}">
                            {{if !wd.otherMonth}}
                                <div class="week-day-num">
                                    {{=wd.day}}
                                </div>
                                {{if workdays[date]===1}}
                                    <div class="day-special">班</div>
                                {{else if holidays[date]===1}}
                                    <div class="day-special">假</div>
                                {{/if}}
                                {{if solarTerms[date]}}
                                    <div class="point">{{=solarTerms[date]}}</div>
                                {{/if}}
                                {{if wd.month==birthday.month&&wd.day==birthday.day}}
                                    <div class="daughter-birthday">{{=birthday.name}}</div>
                                {{/if}}
                            {{/if}}
                        </td>
                    {{/each}}
                </tr>
            {{/each}}
        </tbody>
    </table>
</div>